package com.input4hua.builder.builder.B;

import com.input4hua.builder.builder.Builder;
import com.input4hua.builder.product.BProduct;
import com.input4hua.builder.product.Product;

/**
 * Created by jiahua.hu on 2019/2/19.
 */
public class B2Builder extends Builder {

    private BProduct product = new BProduct();

    @Override
    public void doPart() {
        product.setName("B-2");
        product.getParts().clear();
        product.doPart2();
        product.doPart3();
    }

    @Override
    public Product buildProduct() {
        return product;
    }
}
